home *** CD-ROM | disk | FTP | other *** search
- FailAt 20
-
- Echo "PowerCache installation script for use with IconX"
- Echo "Copyright © 1993, Michael Berg"
- Echo "All Rights Reserved"
- Echo ""
-
- Echo "Installing Libraries:"
-
- Echo " reqtools.library"
- Version > NIL: reqtools.library 37
- If NOT WARN
- Echo " You already have: " NOLINE
- Version reqtools.library
- Echo "" NOLINE
- Ask " Do you want to install version 38.1022 of reqtools.library?"
- If WARN
- Echo " Copying reqtools.library to your LIBS: ..."
- Copy >NIL: /libs/reqtools.library LIBS:
- Else
- Echo " Skipped"
- EndIf
- EndIf
-
- Avail >NIL: FLUSH
-
- Echo ""
-
- If EXISTS Locale:Catalogs
- Ask "Do you wish to install the PowerCache catalog files? [y/n]: "
- If WARN
- Copy >NIL: Locale Locale: All
- Echo "Catalogs installed"
- EndIf
- Else
- Echo "Catalog files not installed -- no Locale directory found"
- EndIf
-
- If EXISTS SYS:Tools/Commodities
- SetEnv TargetDir Sys:Tools/Commodities
- Else
- SetEnv TargetDir Sys:
- Endif
-
- Ask "Do you wish to install the 68020 version of PowerCache? [y/n]: "
- If WARN
- SetEnv SourceFile PowerCache.020
- Else
- SetEnv SourceFile PowerCache
- EndIf
-
- Echo "Installing the PowerCache files in $TargetDir/PowerCache/"
-
- MakeDir $TargetDir/PowerCache
- MakeDir $TargetDir/PowerCache/Documentation
-
- Copy >NIL: /$SourceFile $TargetDir/PowerCache
- Copy >NIL: /$SourceFile.info $TargetDir/PowerCache
- Copy >NIL: /Documentation/#?.guide#? $TargetDir/PowerCache/Documentation
-
- Echo "Adding to S:User-Startup..."
-
- Echo ";BEGIN PowerCache" >>S:User-Startup
- Echo "Assign PowerCache: *"$TargetDir/PowerCache*" DEFER" >>S:User-Startup
- Echo ";END PowerCache" >>S:User-Startup
-
- Echo "*NNote: Make sure your S:Startup-sequence executes S:User-Startup!"
- Echo "*NDone. You may close the window now."
-